package net.longjin.controller;

import com.alibaba.fastjson.JSONObject;
import net.longjin.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 描述:StudentController
 *
 * @author 何志鹏
 * @ClassName:StudentController
 * @create 2020-11-17 17:14
 * Version 1.0
 */
@RestController
@RequestMapping("/api/student")
public class StudentController {

    @Autowired
    private StudentService studentService;


    /**
     * 获取学生信息
     *
     * @return
     */
    @RequestMapping("/getInfos")
    public JSONObject  getInfos(){
        return studentService.getInfos();
    }
}
